<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<style type="text/css">
		p{
			height: 5px;
			width: 20px;
			background-color: red;
		}
		div{
			height: 200px;
			width: 200px;
			background-color: blue;
		}
	</style>
	<script type="text/javascript" src="jq.js"></script>
	<script type="text/javascript">
		$(function () {
				setInterval(dd,200);
			// 	function dd(){
			// 	$('p').animate({width:'1200px'}, 1000);
			// 	$('p').animate({width:'0px'}, 1000);

			// }

			function dd(){
			$('div').fadeOut(2000).delay(800).fadeIn(2000);
			}	

		})
	</script>
</head>
<body>
	<!-- <p></p> -->
	<div><img src="2.jpg" alt=""></div>
</body>
</html>